package com.lqw.wechat.dao;

import com.lqw.wechat.entity.Follower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface FollowerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Follower record);

    Follower selectByPrimaryKey(Long id);

    List<Follower> selectAll();

    int updateByPrimaryKey(Follower record);


    /**
     *  根据openId 获得关注者
     * @param openId
     * @return
     */
    Follower getFollowerByOpenId(@Param("openId") String openId);
}